package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 *  实体类
 * 表名：sys_sms_template
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "sys_sms_template")
public class SysSmsTemplate implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false, length = 32)
    private String id;
    
    /**
     * 模板标题
     */
    @Column(name = "template_name", length = 50)
    private String templateName;
    
    /**
     * 模板CODE
     */
    @Column(name = "template_code", nullable = false, length = 32)
    private String templateCode;
    
    /**
     * 模板类型：1短信 2邮件 3微信
     */
    @Column(name = "template_type", nullable = false, length = 1)
    private String templateType;
    
    /**
     * 模板内容
     */
    @Column(name = "template_content", nullable = false, length = 1000)
    private String templateContent;
    
    /**
     * 模板测试json
     */
    @Column(name = "template_test_json", length = 1000)
    private String templateTestJson;
    
    /**
     * 创建日期
     */
    @Column(name = "create_time")
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建人登录名称
     */
    @Column(name = "create_by", length = 32)
    private String createBy;
    
    /**
     * 更新日期
     */
    @Column(name = "update_time")
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新人登录名称
     */
    @Column(name = "update_by", length = 32)
    private String updateBy;
    
    @Override
    public String toString() {
        return "SysSmsTemplate{" +
            "id=" + id +
            ", templateName=" + templateName +
            ", templateCode=" + templateCode +
            ", templateType=" + templateType +
            ", templateContent=" + templateContent +
            ", templateTestJson=" + templateTestJson +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 